package com.sm.gateway.feigns;

import com.sm.gateway.feigns.fallback.UserFeignClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @program: practice
 * @description:
 * @author: liqitian.
 * @create: 2019-11-27 13:53
 **/

@FeignClient(value = "sm-user",fallback = UserFeignClientFallBack.class)
@RequestMapping("api/v2/oper")
public interface UserFeignClient {

    @RequestMapping(value = "/check_exist_admin",method = RequestMethod.POST)
    boolean check_exist_admin(
            @RequestParam("adminUserId") Long adminUserId
    );
}
